<%@include file="init.jsp" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <%@include file="head.jsp" %>
    </head>
    <body>
        <div id="page">
            <%@include file="menu.jsp" %>
            <div id="main-content">
                <h3>Nuevo combate</h3>
                <html:form action="GuardarCombate.do" method="POST">
                    <table>
                        <tr>
                            <th>Boxeador 1</th>
                            <td>
                                <logic:notEmpty name="CombatesForm" property="boxeadores">
                                    <html:select name="CombatesForm" property="boxeador1">
                                        <html:optionsCollection name="CombatesForm" property="boxeadores" label="nombre" value="idBoxeador"/>
                                    </html:select>
                                </logic:notEmpty>
                            </td>
                        </tr>
                        <tr>
                            <th>Cuota</th>
                            <td><input type="text" name="cuota1"></td>
                        </tr>
                        <tr>
                            <th>Boxeador 2</th>
                            <td>
                                <logic:notEmpty name="CombatesForm" property="boxeadores">
                                    <html:select name="CombatesForm" property="boxeador2">
                                        <html:optionsCollection name="CombatesForm" property="boxeadores" label="nombre" value="idBoxeador"/>
                                    </html:select>
                                </logic:notEmpty>
                            </td>
                        </tr>
                        <tr>
                            <th>Cuota</th>
                            <td><input type="text" name="cuota2"></td>
                        </tr>
                        <tr>
                            <th>Fecha</th>
                            <td><input type="text" name="dia" size="1"><span class="grande">/</span><input type="text" name="mes" size="1"><span class="grande">/</span><input type="text" name="anyo" size="1"></td>
                        </tr>
                        <tr>
                            <th>Estadio</th>
                            <td>
                                <logic:notEmpty name="CombatesForm" property="estadios">
                                    <html:select name="CombatesForm" property="estadio">
                                        <html:optionsCollection name="CombatesForm" property="estadios" label="nombre" value="idEstadio"/>
                                    </html:select>
                                </logic:notEmpty>
                            </td>
                        </tr>
                        <tr>
                            <th>Precio entrada</th>
                            <td><input type="text" name="precio"></td>
                        </tr>
                        <tr>
                            <th></th>
                            <td><html:submit property="submit" value="Guardar"/></td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <html:messages id="errors">
                                    <bean:write name="errors" />
                                </html:messages>
                            </td>
                        </tr>
                    </table>
                </html:form>
            </div>
        </div>
    </body>
</html>
